package com.jzy.common.constant;

import lombok.Getter;

/**
 * @author jzy
 * @date 2020/9/7 20:23
 */
public class ProductConstant {

    //规格参数 or 销售属性
    public enum AttrEnum{
        ATTR_TYPE_BASE(1,"规格参数"),ATTR_TYPE_SALE(0,"销售属性");
        @Getter private int code;
        @Getter private String message;

        AttrEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }
    }

    //spu状态
    public enum SpuStatusEnum{
        SPU_NEW(0,"新建"),
        SPU_UP(1,"商品上架"),
        SPU_DOWN(2,"商品下架");
        @Getter private int code;
        @Getter private String message;

        SpuStatusEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }
    }
}
